/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package weatherdata;

/**
 *
 * @author Omar Beltran
 */
public class DewPointDisplay {
    //PR = punto de rocío
    private double Pr;
    //T temperatura en grados Celcius
    private double T;
    //H Humedad Relativa
    private double H;
    
    public DewPointDisplay(double temperatura,double humedad){
        this.T = temperatura;
        this.H = humedad;
        calcular();
    }
    
    private void calcular(){
        Pr = ((Math.pow((H/100), (1/8)))*(110+T))-110;
        System.out.println("Pr = "+Pr);
    }
    
    
}
